/*
 * @Author: your name
 * @Date: 2021-04-08 16:20:17
 * @LastEditTime: 2021-05-26 16:14:52
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: /vite-project/src/main.ts
 */
import '@/design/index.less';

import { createApp } from 'vue';
import App from './App.vue';
import { setupStore } from '@/store';
import { setupRouterGuard } from '@/router/guard';
import { setupAntd } from '@/plugins';
import router, { setupRouter } from './router';

// createApp(App).mount('#app');

const app = createApp(App);

// 注册全局常用的ant-design-vue组件
setupAntd(app);
// 挂载vuex状态管理(使用pinia)
setupStore(app);
// 挂载路由
setupRouter(app);
setupRouterGuard();
// 路由准备就绪后挂载APP实例
router.isReady().then(() => app.mount('#app'));
